PromptCallback

public interface PromptCallback implements BrowserAsyncCallback<P, R>

This callback is invoked when JavaScript dialog prompting the user to input some text should be displayed.

The passed Params object contains the text of the prompt message and the default response text. You can use this information to display standard Java modal dialog to obtain a prompt response from user. Please note that it is not necessary to display a dialog in this callback.

Use the ok method to close the dialog and pass the text value passed as a parameter to the engine.

Use the cancel method to cancel the dialog.

If the callback throws an exception, the cancel method will be invoked.

Inheritors

Types

Link copied to clipboard
public final class Action extends AsyncCallbackAction<R>
An action providing a response to the PromptCallback.
Link copied to clipboard
public interface Params
The parameters of the PromptCallback.

Functions

Link copied to clipboard
public abstract void on(P params, R tell)
Invoked when the callback needs a response for the given callback parameters.